<?
class Efeito {
	
	protected $data = array();
	
	function __construct ($accao, $atributo, $valor) {
		$this->data['id']			= rand(1,999999);
		$this->data['accao']		= $accao;
		$this->data['atributo']		= $atributo;
		$this->data['valor']		= $valor;
	}
	
	public function toArray() {
		return $this->data;
	}
	
	public function getValue($key) {
		return $this->data[$key];
	}
}
?>